<!-- {include file="header.html"} -->
<div id="currentPosition">
	<p>{lang your_current_position} {lang templet} &raquo; {lang company_templet}</p>
</div>
<div id="rightTop"> 
    <h3>{lang company_templet}</h3> 
    <ul class="subnav">
		<li><a href="templet.php">{lang manage}</a></li>
        <li><a class="btn1" href="templet.php?do=edit&id={$item.id}"><span>{lang edit}</span></a></li>
    </ul>
</div>
<div class="info">
  <form action="templet.php" method="post" id="EditFrm" name="edit_frm" enctype="multipart/form-data">
  <input type="hidden" name="id" value="{$item.id}">
  <input type="hidden" name="type" value="{$smarty.get.type}">
  <input type="hidden" name="page" value="{$smarty.get.page}" />
    <table class="infoTable">
      <tr>
        <th class="paddingT15"> {lang template_name}</th>
        <td class="paddingT15 wordSpacing5">          
		<input class="infoTableInput2" name="data[templet][title]" value="{$item.title}" /><label class="field_notice">{lang title_display}</label>        </td>
      </tr>
	  {if $smarty.get.type=="user"}
      <tr>
        <th class="paddingT15"> {lang applicable_membership_type}</th>
        <td class="paddingT15 wordSpacing5">
			<select multiple name="data[require_membertype][]" id="RequireMembertype">
			<option value="0">{lang no_limit}</option>
			<!--{foreach from=$Membertypes item=typename key=typekey}-->
			<option value="{$typekey}">{$typename}</option>
			<!--{/foreach}-->
			</select>{lang click_ctrl_n_select}</td>
      </tr>
      <tr>
        <th class="paddingT15"> {lang applicable_member_group}</th>
        <td class="paddingT15 wordSpacing5">
			<select multiple name="data[require_membergroups][]" id="RequireMembergroups">
			<option value="0">{lang no_limit}</option>
			<!--{foreach from=$Membergroups item=groupitem key=groupkey}-->
			<option value="{$groupkey}">{$groupitem}</option>
			<!--{/foreach}-->
			</select>{lang click_ctrl_n_select}</td>
      </tr>
      <tr>
        <th class="paddingT15"> {lang if_default}</th>
        <td class="paddingT15 wordSpacing5"><!--{html_radios name="data[templet][is_default]" options=$AskAction checked=$item.is_default|default:0 separator=""}--></td>
      </tr>
	  {/if}
      <tr>
        <th class="paddingT15"> {lang description_n}</th>
        <td class="paddingT15 wordSpacing5">
        <textarea style="width:550px;height:50px;" name="data[templet][description]">{$item.description}</textarea>        </td>
      </tr>
      <tr>
        <th class="paddingT15"> {lang if_valid}</th>
        <td class="paddingT15 wordSpacing5"><!--{html_radios name="data[templet][status]" options=$AskAction checked=$item.status|default:0 separator=""}--></td>
      </tr>
      <tr>
        <th></th>
        <td class="ptb20">
			<input class="formbtn" type="submit" name="save" value="{lang save}" />		</td>
      </tr>
    </table>
  </form>
</div>
<!-- {include file="footer.html"} -->